//
//  GPSManager.h
//  YanXiuWang
//
//  Created by 慧趣小歪 on 17/1/7.
//  Copyright © 2017年 小分队. All rights reserved.
//

#import <CoreLocation/CoreLocation.h>
#import "WGS84TOGCJ02.h"
#define GPS [GPSManager shared]

@class GPSManager;
typedef void (^OnFailure)(NSError *error);
typedef GPSManager * (^GPS_MANAGER_FAILED)(OnFailure failuer);

typedef void(^GPS_MANAGER_COMPLETE)(CLLocation *location);

@interface GPSManager : NSObject <CLLocationManagerDelegate>

@property(nonatomic, copy, readonly)GPS_MANAGER_FAILED onFailed;

- (void)getLocationOnComplete:(GPS_MANAGER_COMPLETE)onComplete;
- (BOOL)isCanLoating;
@end
#pragma mark - 单例相关
@interface GPSManager (Once)

+ (instancetype)shared;

@end
